<template>
    <div>
        <div v-if="$route.query.orderId">
            <Detail />
        </div>
        <div v-else>
            <AllOrder />
        </div>
    </div>
</template>
<script setup lang="ts">
import { useRoute, useRouter } from 'vue-router';
import Detail from './detail/index.vue';
import AllOrder from './allOrder/index.vue';

let $route = useRoute()
let $router = useRouter()
</script>

<style lang="scss" scoped>

</style>